package com.alib.springcloud.controller;


import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.UUID;

@RestController
public class PaymentController {
    @Value("${server.port}")
    private String serverPort;

    @GetMapping("/payment/zookeeper")
    public String clientZookerByPayment(){
        return "SpringBoot Client Zookeeper! 端口号：" + serverPort + "流水号：" +  UUID.randomUUID().toString();
    }
}
